package com.baidu.mapapi;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.wifi.WifiManager;
import android.os.Bundle;

class b extends BroadcastReceiver
{
  public void onReceive(Context paramContext, Intent paramIntent)
  {
    WifiManager localWifiManager = (WifiManager)paramContext.getSystemService("wifi");
    ConnectivityManager localConnectivityManager = (ConnectivityManager)paramContext.getSystemService("connectivity");
    NetworkInfo localNetworkInfo1 = localConnectivityManager.getActiveNetworkInfo();
    NetworkInfo localNetworkInfo2 = localConnectivityManager.getNetworkInfo(0);
    int i;
    if (localNetworkInfo1 != null)
      if ((localWifiManager.getWifiState() == 3) && ("WIFI".matches(localNetworkInfo1.getTypeName())))
        i = 1;
    while (true)
    {
      Mj.r = i;
      Bundle localBundle = new Bundle();
      localBundle.putInt("opt", 15010902);
      localBundle.putInt("act", 15010900);
      localBundle.putInt("state", Mj.r);
      Mj.sendBundle(localBundle);
      if (-1 != Mj.r)
        Mj.changeGprsConnect();
      return;
      i = 0;
      continue;
      if (localNetworkInfo2 == null)
        i = -1;
      else if ((localWifiManager.getWifiState() == 3) && ("WIFI".matches(localNetworkInfo2.getTypeName())))
        i = 1;
      else
        i = 0;
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.baidu.mapapi.b
 * JD-Core Version:    0.6.2
 */